<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="jquery-1.8.3.min.js"></script>
	<style>
		#box{
			width: 500px;
			height: 25px;
			border: 1px solid #1c94c4;
			background: yellow;
		}
	</style>
</head>
<div id="box">
		JQ方法插件
</div>
<body>

<script>
	$.fn.extend({
		colors:function(color){
			this.css('background',color);
		}
	});
	$('#box').Color('red');
</script>
</body>
</html>